function WStest()
{
alert("WStest");



	var parameters = '{"value":"test"}';

	$.ajax({
          url: "http://localhost:50057/Service1.svc/SayHellow",
          type: 'POST',
          async: false,
          dataType: 'json',
          contentType: 'application/json; charset="utf-8"',
          data: parameters,
          complete: function(response) {
               alert('complete: response '+response+' responseText '+response.responseText);

          },
          error: function(response) {
               alert('error '+response.responseText);
          }

    });


alert("WStest done");

/* not working at all



	var url = "http://localhost:50057/Service1.svc/SayHellow";
	var data = "{'value':'test'}";
	//var callback = "{'value':'test'}";
	


    $.postJSON(url, data, function (result) {
      alert("result "+result);
    });
    


	$.postJSON = function(url, data, callback) {
	    return jQuery.ajax({
	    headers: { 
		'Accept': 'application/json',
		'Content-Type': 'application/json' 
	    },
	    'url': url,
	    'data': JSON.stringify(data),
	    'dataType': 'json',
	    'success': function(response) {
               alert('complete: response '+response+' responseText '+response.responseText);
             }
             
	    });
	};

this gives 415 Unsupported Media Type

	var parameters = "{'value':'test'}";

	$.ajax({
          url: "http://localhost:50057/Service1.svc/SayHellow",
          type: 'POST',
          async: false,
          dataType: 'json',
          contentType: 'application/json; charset="utf-8"',
          data: parameters,
          complete: function(response) {
               alert('complete: response '+response+' responseText '+response.responseText);

          },
          error: function(response) {
               alert('error '+response.responseText);
          }

    });
*/

	return true;
}

function AccNoValidator(AccountNo,AccountType,BankName,BranchName,BranchCode)
{
	var parameters = "{'AccountNo':'"+AccountNo+"',"+	
					"'AccountType':'"+AccountType+"',"+	
					"'BankName':'"+BankName+"',"+	
					"'BranchName':'"+BranchName+"',"+	
					"'BranchCode':'"+BranchCode+"'}";

	$.ajax({
          url: "/Quantum/Service1.asmx/ACBCheck",
          type: 'POST',
          async: false,
          dataType: 'json',
          contentType: 'application/json; charset="utf-8"',
          data: parameters,
          complete: function(response) {
               //alert('complete'+response.responseText);
			   var res = jQuery.parseJSON(response.responseText);
			   alert(res.d);
			   if (res.d != 'Ok') EFormSetFocus(EFormGetField("PDBank"));
				
          },
          error: function(response) {
               alert('error'+response.responseText);
          }

    });

	return true;
}

/*
  var xmlhttp = new XMLHttpRequest();
  xmlhttp.open('POST','http://win-ov9fikdj4bv:8080/CiuRequest/CiuWebService.svc',true);

  var sr = '<?xml version="1.0" encoding="utf-8"' +
	'<soapenv:Envelope '+
	'xmlns

	
  xmlhttp.send('pooy');  
  alert('done');
  
  return true;
}
*/

/*
// Obtain the WSDL proxy object:
var myProxy = Net.SOAP.connect ("http://localhost/rob/");

 // Net.SOAP.connect ("http://2008.quantumsolutions.co.za:8080/CIURequest/CiuWebService.svc?wsdl");

// Invoke the echoString web service, which requires a string parameter:
var testString = ("This is a test string.");
var result = myProxy.echoString(testString);
// Display the response in the console:
console.println("Result is " + result);
// Invoke the echoInteger web service, which requires an integer parameter:
// Since JavaScript does not support XSD-compliant integer values,
// we will create an integer object compliant with the XSD standard:
var myIntegerObject = {
soapType: "xsd:int",
soapValue: "10"
};
var result = myProxy.echoInteger(myIntegerObject);
// Display the response in the console:
console.println("Result is " + result);
}
*/


/*
function fn_getInfoMaq(strCallWS)
{
var URLEntorn = "http://2008.quantumsolutions.co.za:8080/CIURequest/CiuWebService.svc?wsdl";
var service = Net.SOAP.connect(URLEntorn);

var request =
{
soapType: "xsd:string",
soapValue: strCallWS
};

var params = {datos:request};

var result = service.methodName(params);

return result;
}
*/
